package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;

/**
 * Created by Administrator on 2017/12/6.
 */
public interface IUserService {
    ServerResponse<User> login(String username, String password);//登录接口
    ServerResponse<String> register(User user);//注册接口
    ServerResponse<String> checkValid(String str,String type);//判断username与email是否存在
    ServerResponse<String> selectQuestion(String username);
    ServerResponse<String> checkAnswer(String username, String question,String answer);//提示问题与答案
    ServerResponse<String> resetPassword(String passwordOld,String passwordNew,User user);//修改密码
    ServerResponse<String>  forgetResetPassword(String username,String passwordNew,String forgetToken);//在登录的时候修改密码
    ServerResponse<User> updateInformation(User user);//更新个人信息
    ServerResponse<User> getInformation(Integer userId);
}
